﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys;

/// <summary>
/// 不合格品处理单不良项实体.
/// </summary>
[SugarTable("qms_busi_defecthandledetail","不合格品处理单不良项")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBusiDefecthandledetailEntity : CLDEntityBase
{
    ///// <summary>
    ///// GUID.
    ///// </summary>
    //[SugarColumn(ColumnName = "F_Id",ColumnDescription = "GUID", IsPrimaryKey = true)]
    //public string Id { get; set; }

    /// <summary>
    /// 处理单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_DefectHandleCode", ColumnDescription = "处理单号")]
    public string DefectHandleCode { get; set; }

    /// <summary>
    /// 检验项目ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_InspectionItemId",ColumnDescription = "检验项目ID")]
    public string InspectionItemId { get; set; }

    /// <summary>
    /// 检验项目.
    /// </summary>
    [SugarColumn(ColumnName = "F_InnspectionCode",ColumnDescription = "检验项目")]
    public string InnspectionCode { get; set; }

    /// <summary>
    /// 检验项目名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_InnspectionName",ColumnDescription = "检验项目名称")]
    public string InnspectionName { get; set; }

    /// <summary>
    /// 检验条⽬.
    /// </summary>
    [SugarColumn(ColumnName = "F_InnspectionEntry",ColumnDescription = "检验条⽬")]
    public string InnspectionEntry { get; set; }

    /// <summary>
    /// 检验条⽬名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_InnspectionEntryName",ColumnDescription = "检验条⽬名称")]
    public string InnspectionEntryName { get; set; }

    /// <summary>
    /// 抽样数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_SamplingQty",ColumnDescription = "抽样数量")]
    public int? SamplingQty { get; set; }

    /// <summary>
    /// 不良数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_DefectQty",ColumnDescription = "不良数量")]
    public int? DefectQty { get; set; }

    /// <summary>
    /// 不良率.
    /// </summary>
    [SugarColumn(ColumnName = "F_DefectRate",ColumnDescription = "不良率")]
    public decimal DefectRate { get; set; }


}